import request from '@/utils/request'
export default{
  getAllChapterVideo(courseId) {
    return request({
      url: `/eduservice/chapter/getChapterVideo/${courseId}`,
      method: 'get'
    })
  },

  addChapter(form) {
    return request({
      url: `/eduservice/chapter/addChapter`,
      method: 'post',
      data: { ...form }
    })
  }
}
